/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: ReturnCodeEnum
 * Author:   zhouheng
 * Date:     2019/5/14 8:05
 * Description: 返回码枚举值
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */

package com.star.pay.common;

/**
 * 〈一句话功能简述〉<br> 
 * 〈返回码枚举值〉
 *
 * @author zhouheng
 * @create 2019/5/14
 * @since 1.0.0
 */
public enum ReturnCodeEnum {
    SUCCESS("000000", "成功"),
    SYSTEM_ERROR("300999", "系统繁忙,请稍后重试"),
    PARAMETER_NULL("300001", "请求参数不正确");

    private String code;

    private String msg;

    private ReturnCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getCodeString(){
        return getCode()+"";
    }
    @Override
    public String toString() {
        return "ReturnCodeEnum{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
